<include file="Common:header" />
<TYjs file='fix_table_title'/>
<div class="table_content">
    <form action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME)}" method="post" class="ajax_form">
        <div class="toolbar">
            <select class="auto" name="search">
                <!-- <option value="email">{$Think.lang.email}</option>-->
                <option value="mobile">帖名</option>
            </select>
            <input type="text" class="text w150" id="keywords" name="keywords" title="填'帖名'查询" placeholder="填'帖名'查询"/>
            <button type="submit">查询</button>
        </div>
    </form>
    <form action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/delete_post')}" method="post" class="ajax_form">
        <table class="list_table">
            <tr>
                <!-- <th width="50px"><input type="checkbox" class="check_all" title="选择全部"/></th> -->
                <th width="70px">ID</th>
                <th style="min-width:200px;">帖名</th>

                <th width="190px">创建时间</th>
                <th width="190px">更新时间</th>
                <th width="80px">是否开启</th> 
                <th width="130px">操作</th>
            </tr>
            <foreach name='postInfo' item='vo'>
                <tr>
                    <!-- <td>
                        <input type="checkbox" name="ids[]" class="check_one" value="{$vo.id}"/>
                    </td> -->
                    <td>{$vo.id}</td>
                    <td>{$vo.title}</td>                    
                    <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                    <td>{$vo.update_time|date="Y-m-d H:i:s",###}</td>
                    <!-- <td>{$vo.creat_time}</td> -->
                    <td><input type="button" class="js_status status_{$vo['status']?'enable':'disable'}" url="{:U(MODULE_NAME.'/Publish/change_post_status',array('id'=>$vo['id']))}"/></td>
                    <td>
                        <a class="edit" href="{:U(MODULE_NAME.'/Publish/edit_announcement',array('id'=>$vo['id']))}" title="编辑"></a>
                        <a class="delete" href="{:U(MODULE_NAME.'/Publish/delete_announcement',array('id'=>$vo['id']))}" title="删除"></a>
                    </td>
                </tr>
            </foreach>
        </table>
        <div class="tab_box_btn">
                <input type="submit" class="recover" value="批量删除"/>
        </div>
    </form>
    <div class="page">{$page}</div>
</div>
<script type="text/javascript">
    $(function() {
        //$('select[name="search"]').val("{$Think.cookie.businessListSearch}");
    });
</script>
<include file="Common:footer" />
